/* 基础样式 - 简约设计 */
body {
    min-height: 1024px;
    background: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #374151;
}

/* 侧边栏样式 - 简约设计 */
.sidebar {
    width: 240px;
    height: calc(100vh - 64px);
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 主内容区域 */
.main-content {
    width: calc(100% - 240px);
    background: #f8fafc;
}

/* 输入框样式 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 简约表格阴影 */
.table-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* 卡片悬停效果 - 简约 */
.card-hover {
    position: relative;
    transition: all 0.2s ease;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0) 25%,
        rgba(37,99,235,0.1) 50%,
        rgba(255,255,255,0) 75%
    );
    animation: flow 4s linear infinite;
    z-index: 1;
}

@keyframes flow {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(50%, 50%) rotate(360deg); }
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 表格行悬停效果 - 简约 */
.table-row-hover {
    transition: background-color 0.2s ease;
}

.table-row-hover:hover {
    background-color: #f9fafb;
}

/* 按钮悬停效果 - 简约 */
.btn-hover {
    transition: all 0.2s ease;
    border-radius: 6px;
}

.btn-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导航项悬停效果 - 简约 */
.nav-item {
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 2px 8px;
}

.nav-item:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

/* 活跃导航项 - 简约 */
.nav-item.active {
    background-color: #eff6ff;
    color: #2563eb;
    border-left: 3px solid #2563eb;
}

/* 搜索框样式 - 简约 */
.search-input {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 表格样式优化 - 简约 */
.modern-table {
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    position: relative;
}

.modern-table::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(37,99,235,0) 25%,
        rgba(37,99,235,0.08) 50%,
        rgba(37,99,235,0) 75%);
    animation: flow 6s linear infinite;
    z-index: -1;
    border-radius: 10px;
}

.modern-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(37,99,235,0) 0%,
        rgba(37,99,235,0.08) 50%,
        rgba(37,99,235,0) 100%
    );
    animation: slide 3s linear infinite;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.modern-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #374151;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
    position: relative;
    overflow: hidden;
}

.modern-table th::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: highlight 2s ease-in-out infinite;
}

@keyframes highlight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.modern-table tr {
    transition: background-color 0.2s ease;
}

.modern-table tr:hover {
    background: #f9fafb;
}

/* 状态标签样式 - 简约 */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
}

/* 分页按钮样式 - 简约 */
.pagination-btn {
    transition: all 0.2s ease;
    border-radius: 4px;
    font-weight: 500;
}

.pagination-btn:hover {
    background-color: #f3f4f6;
}

.pagination-btn.active {
    background: #2563eb;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        width: 100%;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}

/* 简约动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeIn 0.3s ease-out;
}

/* 加载动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* 自定义滚动条 - 简约 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 简约文字效果 */
.simple-text {
    color: #374151;
    font-weight: 500;
}

/* 简约卡片 */
.simple-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 简约按钮 */
.simple-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.simple-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.simple-btn.primary {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.simple-btn.primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}